package org.feng.feign;

import org.feng.base.entity.Result;
import org.feng.vo.EmailMessageVO;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author 冯帅
 * @des TODO
 * @date 2022/2/7 9:55
 * @email 15612509687@163.com
 */
@Component
public class EmailFallBackHandler implements EmailFeign {

    @Override
    public Result<Boolean> sendEmail(EmailMessageVO emailMessage) {
        return Result.error("发送失败");
    }


    @Override
    public Result<Boolean> sendEmailWithAttach(EmailMessageVO emailMessage, MultipartFile[] file) {
        return Result.error("发送失败");
    }
}
